package com.zhhq.enums;

/**
 * Created by HeChaobin on 2017-05-30.
 */
public enum ResultEnum {
    UNKONW_ERROR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    USEREXISTS(1, "用户已存在"),
    USERNOTEXISTS(2, "用户不存在"),
    VERSIONEXISTS(3, "版本号已存在"),
    PWDERROR(4, "密码不正确"),

    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
